﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="baseUrl" value="${pageContext.request.contextPath }"></c:set>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加用户</title>
<link type="text/css" rel="stylesheet" href="${baseUrl }/css/style.css">
<script type="text/javascript">
</script>
</head>
<body>
	<div class="main">
		<div class="optitle clearfix">
			<div class="title">用户管理&gt;&gt;</div>

		</div>
		<form id="form1" name="form1" method="post" action="UserController/addUser"
			onsubmit="return valide()">
			<div class="content">
				<table class="box">
					<tr>
						<td class="field">用户名称：</td>
						<td><input type="text" name="userName" class="text"
							id="userName" /> <font color="red">*</font></td>
					</tr>
					<tr>
						<td class="field">用户密码：</td>

						<td><input type="password" name="password" class="text"
							id="password" /> <font color="red">*</font></td>
					</tr>
					<tr>
						<td class="field">确认密码：</td>
						<td><input type="password" name="password2" id="password2" class="text" oninput="valide()"/> <font
							color="red"><span id="s">*</span></font></td>
					</tr>

					<tr>
						<td class="field">用户性别：</td>
						<td><select name="sex" id="select">
								<option value="">请选择</option>
								<option value="0">女</option>
								<option value="1">男</option>
						</select></td>
					</tr>

					<tr>
						<td class="field">用户年龄：</td>
						<td><input type="text" name="age" class="text"
							id="textfield2" /> <font color="red">*</font></td>
					</tr>
					<tr>
						<td class="field">用户电话：</td>
						<td><input type="text" name="mobile" class="text"
							id="mobile" /> <font color="red">*</font></td>

					</tr>
					<tr>
						<td class="field">用户地址：</td>
						<td><textarea name="address" id="address" class="text"
								cols="45" rows="5"></textarea></td>
					</tr>
					<tr>
						<td class="field">是否是普通员工：</td>
						<td><select name="common" id="common">
								<option value="">请选择</option>
								<option value="0">不是</option>
								<option value="1">是</option>
						</select></td>
					</tr>
					<tr>
						<td class="field">是否是经理：</td>
						<td><select name="supers" id="supers">
								<option value="">请选择</option>
								<option value="0">不是</option>
								<option value="1">是</option>
						</select></td>
					</tr>
				</table>
			</div>
			<div class="buttons">
				<input type="submit" name="button" id="button" value="数据提交" class="input-button" /> 
				<input type="button" name="button" id="button" onclick="window.history.go(-1)" 
				value="返回" class="input-button" />
			</div>
		</form>
	</div>
</body>
</html>
